package mya.mes.mdc.model.alarm;


import java.util.ArrayList;
import java.util.List;

public class AlarmHolder {

  /**
   * 刚触发的报警
   */
  public List<Alarm> listStart = new ArrayList<>();

  /**
   * 停止的报警
   */
  public List<Alarm> listStop = new ArrayList<>();


  public boolean isListStartEmpty() {
    return listStart == null || listStart.isEmpty();
  }

  public boolean isListStopEmpty() {
    return listStop == null || listStop.isEmpty();
  }


  public boolean isAllEmpty() {
    return isListStartEmpty() && isListStopEmpty();
  }
}
